/*
 * @Description: 表单验证参数
 * @Author: James324
 * @Date: 2023-09-27 10:50:34
 * @LastEditors: James324
 * @LastEditTime: 2023-10-27 15:18:13
 */
import { generateRandomId, InputType } from '@/utils';

export const formConfig: PageConfig = {
    id: generateRandomId(),
    items: [
        {
            modelKey: 'processRouteCode',
            columnProps: {
                label: '工艺路线编码'
            },
            elInputProps: {
                maxlength: '50',
                showWordLimit: true
            },
            validProps: {
                id: generateRandomId(),
                required: true
            },
            validFormatType: InputType.NUMERIC_ALPHABET_SYMBOLS
        },
        {
            modelKey: 'processRouteName',
            columnProps: {
                label: '工艺路线名称'
            },
            elInputProps: {
                maxlength: '50',
                showWordLimit: true
            },
            validProps: {
                id: generateRandomId(),
                required: true
            }
        },
        {
            modelKey: 'materialCode',
            itemType: 'other',
            columnProps: {
                label: '物料编码'
            },
            validProps: {
                id: generateRandomId(),
                required: true
            }
        },
        {
            modelKey: 'processRouteDesc',
            columnProps: {
                label: '工艺路线描述'
            },
            elInputProps: {
                maxlength: '50',
                showWordLimit: true
            },
            validProps: {
                id: generateRandomId()
            }
        },
        {
            modelKey: 'remarks',
            columnProps: {
                label: '工艺路线备注'
            },
            elInputProps: {
                type: 'textarea',
                rows: 1,
                maxlength: '50',
                showWordLimit: true
            },
            validProps: {
                id: generateRandomId()
            }
        }
    ]
};
